package com.shuidihuzhu.sdb.helper.log.utils;

import java.lang.reflect.Method;

/**
 * 关键字工具类
 * @author dongzhihua
 */
public class KeyWordsUtil {
    private KeyWordsUtil() {
    }

    /**
     * 关键字
     */
    public static String kw(Method method) {
        final Class<?> declaringClass = method.getDeclaringClass();
        final String simpleName = declaringClass.getSimpleName();
        final String name = method.getName();
        return simpleName + " " + name;
    }
}
